<?php
/**
 * Created by PhpStorm.
 * User: admin
 * Date: 2016/9/29
 * Time: 9:36
 */


var_dump(strpos('\n',"\nhttps://img.alicdn.com/imgextra/i4/70809348/TB2kc_FX4Ab61BjSZFAXXcQfVXa_!!70809348.png"));exit;


$dsn = 'mysql:dbname=jhdb;host=127.0.0.1;port=3306';
$user = 'root';
$password = 'jh!@#2016';
$dbh = new PDO($dsn, $user, $password);
$dbh->query("set names utf8");
$sql = "select * from tong_ji where id = 1";
$sth = $dbh->query($sql);
$row = $sth->fetch();
var_dump($row);
exit;
